package test;

import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author Manseer Marcel  
 * @author Plavsic Maja
 * @author Pretsch Paul
 */
public class Constants {
		
	/**
	 * Returns a set of 30 random tweet amounts used for testing.
	 * @return Map<Date, Integer>
	 */
	public static Map<Date, Integer> getTwitterDataTestSet() {
		HashMap<Date, Integer>set = new HashMap<Date, Integer>();
		Calendar cal = Calendar.getInstance();
		
		for (int i=0; i<30; i++) {
			cal.set(2013, 05, i+1);
			set.put(new Date(cal.getTime().getTime()), 40+(int)(Math.random()*20));
		}
	
		return set;
	}
	
	public static Map<Date, Integer> getEmptyTwitterDataTestSet() {
		HashMap<Date, Integer>set = new HashMap<Date, Integer>();
		Calendar cal = Calendar.getInstance();
		set.put(new Date(cal.getTime().getTime()), 0);
		return set;
	}
}
